//
//  CCVSCustomLayout.h
//  CollectionViewTest
//
//  Created by Pasirstein, David B on 5/11/13.
//  Copyright (c) 2013 Pasirstein, David B. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CCVSCommon.h"
#import "CCVSColumn.h"
#import "CCViewStudyViewController.h"


@interface CCVSCustomLayout : UICollectionViewFlowLayout
{
    enum CCVS_LAYOUT_SCALE { CCVS_LAYOUT_FULL_SCALE, CCVS_LAYOUT_SCALE_TO_SUPERVIEW };
}

@property (nonatomic) enum CCVS_LAYOUT_SCALE scaleType;
@property (nonatomic,weak) CCViewStudyViewController <UICollectionViewDelegateFlowLayout> * vc; //for dynamic reference to ccvsColumns
@property (nonatomic,weak) UIView * superView;



//fit to SuperView should be nil unless you want the max with to be limited
+(CGFloat)getWidthOfColumn:(int)column withData:(NSArray*)ccvsColumns inSuperView:(UIView*)superview fitToSuperView:(enum CCVS_LAYOUT_SCALE)fit;



+(CGFloat)getTotalWidth:(NSArray*)ccvsColumns inSuperView:(UIView*)superView fitToSuperView:(enum CCVS_LAYOUT_SCALE)fit;

@end
